package com.test.controllers;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/external")
public class MeetingMockController {

    @ResponseBody
    @RequestMapping("/login")
    public String login(@RequestBody String param) {
        System.out.println("login:" + param);
        return "{\"authCode\":\"\",\"code\": 0,\"data\":{\"authCode\":\"d067282e-91cf-4c3f-92ce-0d7aad4fd18b\",\"avatar\": \"\",\"userName\": \"白居易\",\"userId\": 443,\"deadLine\": 2147483647},\"msg\": \"success\"}";
    }

    @ResponseBody
    @RequestMapping("/meeting/initMeeting")
    public String initMeetingPath(@RequestBody String param) {
        System.out.println("initMeetingPath:" + param);
        return "{\"authCode\": \"\",\"code\": 0,\"data\": \"\",\"msg\": \"success\"}";
    }

    @ResponseBody
    @RequestMapping("/datum/initDatum")
    public String initFilePath(@RequestBody String param) {
        System.out.println("initFilePath:" + param);
        return "{\"authCode\": \"\",\"code\": 0,\"data\": \"\",\"msg\": \"success\"}";
    }

    @ResponseBody
    @RequestMapping("/wait/waitTopicStatus")
    public String waitTopicStatusPath(@RequestBody String param) {
        System.out.println("waitTopicStatusPath:" + param);
        return "{\"authCode\": \"\",\"code\": 0,\"data\": \"\",\"msg\": \"success\"}";
    }

    @ResponseBody
    @RequestMapping("/meeting/delete")
    public String deleteMeetingPath(@RequestBody String param) {
        System.out.println("deleteMeetingPath:" + param);
        return "{\"authCode\": \"\",\"code\": 0,\"data\": \"\",\"msg\": \"success\"}";
    }

}
